package com.android.mediaremote;

import android.os.Parcel;
import android.os.Parcelable;

public class PeripheriqueBluetooth implements Parcelable
{
	private String adresse;
	private String nom;
	
	public PeripheriqueBluetooth()
	{}
	
	public PeripheriqueBluetooth(String adresse,String nom)
	{
		this.adresse=adresse;
		this.nom=nom;
	}
	
	public String getAdresse()
	{
		return this.adresse;
	}
	
	public String getNom()
	{
		return this.nom;
	}
	
	public void setAdresse(String adresse)
	{
		this.adresse=adresse;
	}
	
	public void setNom(String nom)
	{
		this.nom=nom;
	}

	@Override
	public int describeContents() 
	{
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) 
	{
		dest.writeString(adresse);
		dest.writeString(nom);
	}
	
	public static final Parcelable.Creator<PeripheriqueBluetooth> CREATOR = new Parcelable.Creator<PeripheriqueBluetooth>()
	{
		@Override
		public PeripheriqueBluetooth createFromParcel(Parcel source)
		{
			return new PeripheriqueBluetooth(source);
		}

		@Override
		public PeripheriqueBluetooth[] newArray(int size)
		{
			return new PeripheriqueBluetooth[size];
		}
	};
	
	public PeripheriqueBluetooth(Parcel in) 
	{
		this.adresse = in.readString();
		this.nom = in.readString();
	}
}
